<!DOCTYPE html>
<html xmlns:wb=“http://open.weibo.com/wb”>
<?php //error_reporting(0); ?>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' );?>" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!--必填-->
<meta property="og:type" content="webpage" />
<meta property="og:url" content="https://covear.top/" />
<meta property="og:title" content="啊晖de老窝" />
<meta property="og:description" content="我的个人博客，分享我的发现~" />
<!--选填-->
<meta property="og:image" content="https://covear.top/wp-content/themes/CovEar/images/bg1.jpg" />
<meta name="weibo:webpage:create_at" content="2014-01-01" />
<meta name="weibo:webpage:update_at" content="2023-04-01" />
<?php include( 'seo.php' ); ?>
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" media="screen" type="text/css">
<?php
	if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
	wp_enqueue_script( 'jquery' );
	wp_head();
?>
<style>
@font-face {
font-family: 'zhcn-font';
    src: url('<?php bloginfo('template_directory'); ?>/font/zhcn-font.otf') format("opentype");
	font-weight: normal;
	font-style: normal;
}
body{font-family:'zhcn-font';}
</style>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.js"></script>
</head>
<body>
<header class="mod-head">
	<h1 class="mod-head__title"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
	<div class="mod-head__logo">
		<a href="<?php echo home_url();?>" title="<?php bloginfo( 'name' ); ?>"><?php if ( !get_option('header_logo_image') ) { } else { echo '<img class="avatar" width="26" height="26" src="' . get_option('header_logo_image') .'">';} ?></a>
		<?php //if (get_posts_count_from_last_24h() != '0') { ?>
			<!--div class="zjgx"><?php //echo get_posts_count_from_last_24h(); ?></div-->
		<?php //} else {  } ?>
	</div>
	<nav class="mod-head__nav">
	<?php 
		$top_nav = wp_nav_menu( array( 'theme_location'=>'main', 'fallback_cb'=>'', 'container'=>'', 'menu_class'=>'mod-head__ul', 'echo'=>false, 'after'=>'<span>·</span>' ) );
		$top_nav = str_replace( "<span>·</span></li>\n</ul>", "</li>\n</ul>", $top_nav );
		echo $top_nav;
	?>
	</nav>
	<a id="right-panel-link" href="#right-panel">
		<span style="padding-right:5rem;font-size:1.1rem;color:#888;text-shadow:0.1rem 0.1rem 4.0rem black;">David Deng's Blog</span>
		<i class="iconfont icon-fenlei"></i>
	</a>
	<div id="right-panel" class="panel">
	<h3 class="rightnavh3">Menu</h3>
		<?php 
			$top_nav = wp_nav_menu( array( 'theme_location'=>'main', 'fallback_cb'=>'', 'container'=>'', 'menu_class'=>'ymod-head', 'echo'=>false, 'after'=>'' ) );
			$top_nav = str_replace( "</li>\n</ul>", "</li>\n</ul>", $top_nav );
			echo $top_nav;
		?>
	<button id="close-panel-bt">X Close</button>
	</div>
	<script src="<?php bloginfo( 'template_url' ); ?>/js/slider.js"></script>
	<script>$('#right-panel-link').panelslider({side: 'right', duration: 200 });$('#close-panel-bt').click(function() {$.panelslider.close();});</script>
</header>
